text = "hello world hello python world python"
word_dict = {} 
words = text.split()  
for word in words: 
    if word in word_dict: 
        word_dict[word] += 1  
    else:  
        word_dict[word] = 1  
sorted_word_dict = sorted(word_dict.items(), key=lambda x: x[1], reverse=True)
for word, count in sorted_word_dict:  
    print(f"{word}: {count}")